﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CinemaSystem
{
    public partial class xwxq : Form
    {
        public xwxq()
        {
            InitializeComponent();
        }
        public int id { set; get; }
        int i = xwlb.i;
        private void xwxq_Load(object sender, EventArgs e)
        {
            string sqlstr = string.Format("select * from Journalism");
            DataTable dt = DBHelper.GetDataTable(sqlstr);
            neirong.Text = dt.Rows[i]["Newscontent"].ToString();
            biaoti.Text = dt.Rows[i]["Journalismname"].ToString();
            shijian.Text = dt.Rows[i]["Addtime"].ToString();
            lbzhuo.Text= dt.Rows[i]["author"].ToString();


        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void btshang_Click(object sender, EventArgs e)
        {
            xwlb xwlb = new xwlb();
            xwlb.Show();
            this.Hide();
        }

        private void btshou_Click(object sender, EventArgs e)
        {
            MainForm MainForm = new MainForm();
            MainForm.Show();
            this.Hide();
        }
    }
}
